<button id='btn'>点击五秒后弹窗</button>
<script>
    btn.onclick=function(){
        setTimeout(function(){
            alert('boom~')
        },5000)
    }
</script>